package tianrun.ziguan.api.calculate.config.dto.request;

import javax.validation.constraints.NotBlank;

public class BusinessParam {
    @NotBlank
    private String deptNum;
    private String tableName;

    public static BusinessParam of(String deptNum) {
        BusinessParam businessParam = new BusinessParam();
        businessParam.setDeptNum(deptNum);
        return businessParam;
    }
    public static BusinessParam of(String deptNum,String tableName) {
        BusinessParam businessParam = new BusinessParam();
        businessParam.setDeptNum(deptNum);
        businessParam.setTableName(tableName);
        return businessParam;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getDeptNum() {
        return deptNum;
    }

    public void setDeptNum(String deptNum) {
        this.deptNum = deptNum;
    }
}
